package com.jch.helloworld.configBeans.autowire;

public class Person {

    private String name;
    private int age;
    private char sex;
    private Address homeAddress;
    private Carrier stockCarrier;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public void setHomeAddress(Address homeAddress) {
        this.homeAddress = homeAddress;
    }

    public void setStockCarrier(Carrier stockCarrier) {
        this.stockCarrier = stockCarrier;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", homeAddress=" + homeAddress +
                ", stockCarrier=" + stockCarrier +
                '}';
    }
}
